﻿package mortal.game.view.achievement.data
{
    import mortal.component.gconst.*;
    import mortal.game.cache.*;

    public class AchievementUtil extends Object
    {
        public static var HideCategory:int = 9;
        public static var HideTabIndex:int = 7;

        public function AchievementUtil()
        {
            return;
        }// end function

        public static function tabIndexToCategory(param1:int) : int
        {
            if (HideTabIndex == param1)
            {
                return HideCategory;
            }
            return param1;
        }// end function

        public static function checkOpenLevel() : Boolean
        {
            var _loc_1:* = Cache.instance.role.entityInfo.level;
            if (_loc_1 >= GameConst.AchievementOpenLevel)
            {
                return true;
            }
            return false;
        }// end function

    }
}
